function [startIn, endIn] = chord_adjustment(startIn,endIn,adjustmentTime)

    for k=1:length(startIn)
        adjustmentVector=find(startIn == startIn(k));
            for m=1:length(adjustmentVector)
                startIn(adjustmentVector(m))=startIn(adjustmentVector(m))+(m-1)*adjustmentTime;
                endIn(adjustmentVector(m))=endIn(adjustmentVector(m))+(m-1)*adjustmentTime;
            end
    end
    
%     for k=1:length(startIn)
%         if startIn(k)>endIn(k)
%             startIn(k)=endIn(k);
%         end
%     end

end